/**   
* @Title: UserController.java 
* @Package org.ay.ispringboot.web.controller 
* @Description: TODO(用一句话描述该文件做什么) 
* @author AndyLi   
* @date Jan 26, 2018 10:10:29 AM 
* @version V1.0   
*/
package org.ay.ispringboot.web.controller;

import java.util.Map;

import org.apache.commons.collections4.map.HashedMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * @author AndyLi
 *
 */
@RestController
@RequestMapping(value="/security/user")
@Api(description="当前登录用户，基本信息，比如：权限、菜单")
public class UserController {

	@RequestMapping(value="loadPermission",method=RequestMethod.GET)
	@ApiOperation(value="返回用户的权限信息",notes="返回当前登录用户所包括的权限")
	public Object loadCurrentUserPermission() {
		Map<String,Object> permission  = new HashedMap<>();
		permission.put("functionId", "11");
		return permission;
	}
}
